package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.Borrower;
import com.atguigu.srb.core.pojo.entity.vo.BorrowerApprovalVO;
import com.atguigu.srb.core.pojo.entity.vo.BorrowerDetailVO;
import com.atguigu.srb.core.pojo.entity.vo.BorrowerVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2023-05-26
 */
public interface BorrowerService extends IService<Borrower> {

    void saveBorrowerVO(BorrowerVO borrowerVO, String token);

    Integer getStatus(String token);

    Page<Borrower> getBorrowerPage(Integer pageNum, Integer pageSize, String key);

    BorrowerDetailVO getBorrowerDetailById(String id);

    void borrowerApproval(BorrowerApprovalVO borrowerApprovalVO);
}
